import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import UserPage from '../user/UserPage.vue'
import AeroView from '../views/AeroView.vue'
import AeroAddView from '../views/AeroAddView.vue'
import AeroUpdateView from '../views/AeroUpdateView.vue'

const routes: Array<RouteRecordRaw> = [
  {path: '/home',component: HomeView}, 
  {path: '/user',component: UserPage},
  {path: '/aero',component: AeroView},
  {path: '/aero/add',component: AeroAddView},
  {path: '/aero/update',component: AeroUpdateView},
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
